<?php
$seo = YSEO::getSEO($node_name, $model->name);
$this->pageTitle = $seo['title'];
$this->pageKeywords = $seo['keywords'];
$this->pageDescription = $seo['description'];

$this->breadcrumbs = YApp::generateAutoBreadcrumbs();
?>

<div id="box_large">
    <div id="top">
        <?php echo $node_name; ?>
    </div>
    <div id="body">
        <div id="body_main">
            <!-- details -->
            <div class="case_details clearfix">
                <div class="thumb_img">
                    <?php echo CHtml::link(CHtml::image($model->thumbnailSource, CHtml::encode($model->name)), array('cases/view', 'id' => $model->id)); ?>
                </div>
                <div class="infos">
                    <div class="title">
                        <?php echo CHtml::link(CHtml::encode($model->name), array('cases/view', 'id' => $model->id), array('title' => CHtml::encode($model->name))); ?>
                        <?php echo CHtml::link(CHtml::encode($model->url), CHtml::encode($model->url), array('class' => 'url')); ?>
                    </div>
                    <div class="other">
                        <?php echo '发布于 ' . date('Y-m-d', $model->created); ?>
                        <span></span>
                        浏览次数: <?php echo $model->clicks_count; ?>
                        <span></span>
                        最后更新: <?php echo date('Y-m-d H:m:s', $model->updated); ?>
                    </div>
                </div>
                <div class="content_details">
                    <?php
                    $this->beginWidget('CMarkdown', array('purifyOutput' => true));
                    echo $model->summary;
                    $this->endWidget();
                    ?>
                </div>
            </div>
            <!-- // details -->
        </div>
    </div>
</div>